#include"NamePipe.hpp"
#include<iostream>
#include<string>
int main()
{
    NamePiped pipe(pathname,User);
    while(true)
    {
        if(pipe.OpenForWrite())
        {
            std::string message;
            std::getline(std::cin,message);
            pipe.WritePipeData(message);

        }
        sleep(1);
    }
    return 0;
}